﻿@model IEnumerable<GSLMS.Entity.TB_SYS_PRODUCT>
@{
    Layout = null;
    ViewBag.ViewTitle = "产品信息";
    var SearchParma = ViewData["SearchParma"] as GSLMS.Entity.TB_SYS_PRODUCT;
    var isEffStatus=ViewData["IsEffStatus"] as SelectList;
    var systemDataList = ViewData["Systemlist"] as SelectList;
}
<form id="pagerForm" method="get" action="System/Product/index?action=page&OpID=@ViewData["OperateID"]">
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="@ViewData["pageSize"]" />
<input type="hidden" name="RowCount" value="@ViewData["RowCount"]" />
<input type="hidden" name="SYSTEMID" value="@SearchParma.SYSTEMID" />
<input type="hidden" name="STATUS" value="@SearchParma.STATUS" />

<input type="hidden" name="PRODUCTNO" value="@SearchParma.PRODUCTNO" />
<input type="hidden" name="PRODUCTNAME" value="@SearchParma.PRODUCTNAME" />
</form>
<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" id="Form_@ViewData["CurrentController"]" action="System/Product/index?action=search&OpID=@ViewData["OperateID"]"
    method="post">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                 <td>
                    产品编号：
                </td>
                <td>
                    @Html.TextBox("PRODUCTNO", SearchParma.PRODUCTNO)
                </td>
                <td>
                    产品名称：
                </td>
                <td>
                    @Html.TextBox("PRODUCTNAME", SearchParma.PRODUCTNAME)
                </td>
                <td>
                    所属系统：
                </td>
                <td>
                   @Html.DropDownList("SYSTEMID", systemDataList, GSLMS.WebAPP.HelperCommon.SelectDefaultValue)
                </td>
                <td>
                    状态：
                </td>
                <td>
                    @Html.DropDownList("STATUS", isEffStatus, GSLMS.WebAPP.HelperCommon.SelectDefaultValue)
                </td>
                <td align="right">
                    <div class="subBar">
                        <ul>
                            <li>
                                <div class="buttonActive">
                                    <div class="buttonContent">
                                        <button type="submit" name="submit">
                                            检索</button></div>
                                </div>
                            </li>
                            <li>
                                <div class="buttonActive">
                                    <div class="buttonContent">
                                        <button type="reset" name="reset">
                                            重置</button></div>
                                </div>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</div>
<div class="pageContent">
    @Html.Partial("Buttons")
    <table class="list" width="100%" layouth="170">
        <thead>
            <tr class="header">
                <th style="width: 90px">
                    产品编号
                </th>
                <th>
                    产品名称
                </th>
                <th>
                    所属系统
                </th>
                <th>
                    生效状态
                </th>
            </tr>
        </thead>
        @foreach (var item in Model)
        {            
            <tr target="Product_ID" rel="@item.ID" >
                <td>
                    @item.PRODUCTNO
                </td>
                <td>
                    @item.PRODUCTNAME
                </td>
                <td>
                    @((GSLMS.Entity.Enum.SystemEnum.SystemID)item.SYSTEMID)
                </td>
                <td>
                    @(item.STATUS==1?"有效":"无效")
                </td>
            </tr>
           
        }
    </table>
</div>
@Html.Partial("PageBar")

